package com.hxzy.entity;

import com.alibaba.fastjson.annotation.JSONField;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description:
 * @Author: ykj
 * @Date: 2022/2/28 10:40
 */
public class PlotInfo implements Serializable {
    @NotBlank(message = "id不能为空")
    private String id;

    @NotBlank(message = "地址不能为空" )
    private String address;

    @NotBlank(message = "小区名字不能为空")
    private String villageName;

    @NotBlank(message = "省份不能为空")
    private String provName;

    @NotBlank(message = "城市不能为空")
    private String cityName;


    private BigDecimal longitude;


    private BigDecimal latitude;

    // fastjson帮你自动转换
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    @Override
    public String toString() {
        return "PlotInfo{" +
                "id='" + id + '\'' +
                ", address='" + address + '\'' +
                ", villageName='" + villageName + '\'' +
                ", provName='" + provName + '\'' +
                ", cityName='" + cityName + '\'' +
                ", longitude=" + longitude +
                ", latitude=" + latitude +
                ", createTime=" + createTime +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getVillageName() {
        return villageName;
    }

    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    public String getProvName() {
        return provName;
    }

    public void setProvName(String provName) {
        this.provName = provName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
